﻿namespace USElections.Calendar.Model
{
    using System;
    using Telerik.Windows.Controls;

    /// <summary>
    /// ElectionsAppointment class.
    /// </summary>
    public class ElectionsAppointment : IAppointment
    {
        /// <summary>
        /// Gets or sets an Id.
        /// </summary>
        public string Id
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets the subject of the appointment.
        /// </summary>
        public string Subject
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets the start date and time of the appointment.
        /// </summary>
        public DateTime StartDate
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets the end date and time of the appointment.
        /// </summary>
        public DateTime EndDate
        {
            get;
            set;
        }

        /// <summary>
        /// Gets or sets the details of the appointment.
        /// </summary>
        public string Details
        {
            get;
            set;
        }

        /// <summary>
        /// Gets a string representation of the appointment
        /// </summary>
        /// <returns>A string representation of the appointment</returns>
        public override string ToString()
        {
            return this.Subject;
        }
    }
}
